﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Print.aspx.cs" Inherits="WebPrint_Print" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!-- 插入打印控件 -->
    <object id="jatoolsPrinter" classid="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
        codebase="jatoolsP.cab#version=1,2,0,2">
    </object>
    <title>杭州市社区服务业证书打印</title>
    <style type="text/css">
        *
        {
            -moz-box-sizing: border-box;
        }
        
        
        .title
        {
            font-family: Arial,Vernada,Tahoma, sans-serif;
            font-size: 30px;
            color: #00008B;
            background-color: White;
            text-decoration: underline;
        }
        .normal
        {
            font-family: Arial,Vernada, Tahoma, Helvetica, sans-serif;
            font-size: 12px;
            color: #444444;
            text-decoration: none;
            line-height: 21px;
        }
        
        
        .hide_for_jatools_print
        {
        }
        .jc
        {
            position: absolute;
            overflow: hidden;
        }
        .jnc
        {
            position: absolute;
        }
        .pb
        {
            overflow: hidden;
            position: relative;
            margin: 5;
            width: 950;
            height: 650;
            background-color: white;
            border-left: 1px solid black;
            border-top: 1px solid black;
            border-right: 4px solid black;
            border-bottom: 4px solid black;
        }
        .c12
        {
            margin-left: 2px;
            margin-bottom: -2px;
            font-family: 宋体;
            font-size: 24px;
            font-weight: bold;
            color: #FF0000;
        }
        .c9, .c8, .c6, .c5, .c4, .c3, .c0
        {
            margin-left: 2px;
            font-family: 宋体;
            font-size: 12px;
            text-align: right;
        }
        .c2
        {
            font-family: 宋体;
            font-size: 16px;
            font-weight: bold;
            line-height: 25px;
        }
        .c112
        {
            font-family: 宋体;
            font-size: 12px;
            line-height: 25px;
        }
        .c113
        {
            font-family: 宋体;
            font-size: 12px;
        }
        .c7
        {
            margin-left: 2px;
            margin-bottom: -2px;
            text-align: right;
            font-family: 宋体;
            font-size: 12px;
        }
        .c11, .c10, .c1
        {
            margin-left: 2px;
            margin-bottom: -2px;
            text-align: right;
            font-family: 宋体;
            font-size: 12px;
        }
    </style>
    <script type="text/javascript">
        function doPrint(how) {

            if (typeof (jatoolsPrinter.page_div_prefix) == 'undefined') {
                alert("请按页顶上的黄色提示下载ActiveX控件.如果没有提示请按以下步骤设置ie.\n 工具-> internet 选项->安全->自定义级别,设置 ‘下载未签名的 ActiveX ’为'启用'状态")
                return;
            }
            //打印文档对象
            var myreport = {
                documents: document,    // 打印页面(div)们在本文档中
                copyrights: '杰创软件拥有版权 www.jatools.com'         // 版权声明必须
            };

            // 调用打印方法
            if (how == '打印预览...')
                jatoolsPrinter.printPreview(myreport);   // 打印预览

            else if (how == '打印...')
                jatoolsPrinter.print(myreport, true);   // 打印前弹出打印设置对话框

            else
                jatoolsPrinter.print(myreport, false);       // 不弹出对话框打印
        }
    </script>
</head>
<body>
    <div style='background-color: #808080; width: 950; height: 650; overflow: scroll;'>
        <div id="page_1" class="pb">
            <div id="page1">
                <div class="jnc" style="left: 0; top: 0; clip: rect(0,950,620,0)">
                    <img class='hide_for_jatools_print' src="img.jpg" width="903" height="617" alt="" /></div>
                <div class="jc" style="left: 225; top: 328; width: 200; height: 40">
                    <input id="zh" type="text" class="c0" style="margin-top: 4px; width: 120; height: 30;
                        border-width: 0" runat="server" />
                </div>
                <div class="jc" style="left: 171; top: 364; width: 210; height: 40">
                    <input id="jg" type="text" class="c2" style="margin-top: 4px; width: 190; height: 30;
                        border-width: 0" runat="server" />
                </div>
                <div class="jc" style="left: 170; top: 437; width: 210; height: 40">
                    <input id="rq" type="text" class="c2" style="margin-top: 4px; width: 190; height: 30;
                        border-width: 0" runat="server" />
                </div>
                <div class="jc" style="left: 135; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 32; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 180; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 28; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 215; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 28; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 266; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 32; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 307; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 28; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 343; top: 502; width: 40; height: 40">
                    <input type="text" class="c0" style="margin-top: 4px; width: 28; height: 21; border-width: 0"
                        runat="server" />
                </div>
                <div class="jc" style="left: 618; top: 62; width: 261px; height: 100">
                    <%--<input id="dwmc" type="text" class="c112" style="margin-top: 4px; width: 238px; height: 30;
                        border-width: 0" runat="server" />--%>
                    <textarea id="dwmc" class="c113" style="margin-top: 4px; width: 238px; height: 80;
                        border-width: 0; overflow: hidden" runat="server" />
                </div>
                <div class="jc" style="left: 618; top: 150; width: 267px; height: 100">
                    <textarea id="fwdz" class="c113" style="margin-top: 4px; width: 238px; height: 80;
                        border-width: 0; overflow: hidden" runat="server" />
                </div>
                <div class="jc" style="left: 621; top: 238; width: 210; height: 40">
                    <input id="fzr" type="text" class="c112" style="margin-top: 4px; width: 180; height: 30;
                        border-width: 0" runat="server" />
                </div>
                <div class="jc" style="left: 540; top: 356; width: 300; height: 200">
                    <textarea class="c113" style="margin-top: 4px; width: 300; height: 200; border-width: 0;
                        overflow: hidden" runat="server" />
                </div>
            </div>
        </div>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="300" id="AutoNumber1">
        <tr>
            <td width="300" height="20" valign="top">
                <input type="button" value="打印预览..." onclick="doPrint('打印预览...')" />
                <input type="button" value="打印..." onclick="doPrint('打印...')" />
                <input type="button" value="打印" onclick="doPrint('打印')" />
            </td>
        </tr>
    </table>
</body>
</html>
